export function formatDate(val, style) {
    if (style == "sub") {
        return val.substr(0, val.indexOf("T"))
    } else {
        return val.split("T").join(" ")
    }
}